<template>
  <view class="app-container">
    <view class="title">登录/注册</view>
    <u-input border="bottom" clearable type="number" placeholder="请输入手机号码"></u-input>
    <u-button type="primary" shape="circle" text="发送验证码" class="send-code" @click="onSendCode"></u-button>
    <text class="pwd-login" @click="onClick">使用密码登录</text>
  </view>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    // 发送验证码
    onSendCode() {
      uni.navigateTo({
        url: '/pages/index/index'
      })
    },
    onClick() {
      uni.navigateTo({
        url: '/pages/pwdlogin/pwdlogin'
      })
    }
  }
}
</script>

<style lang="scss">
.app-container {
  padding: 24px;
  .title {
    font-size: 30px;
    margin-bottom: 50px;
    color: #303030;
  }
  .send-code {
    margin: 20px 0;
  }
  .pwd-login {
    display: block;
    text-align: center;
    color: #03b9ff;
    font-size: 14px;
  }
}
</style>
